package com.example.academic_affairs_system.controller;

import com.example.academic_affairs_system.common.R;
import com.example.academic_affairs_system.model.dto.classStudent.ClassStudentPageDTO;
import com.example.academic_affairs_system.service.IAasClassStudentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 前端控制器
 *
 * @author hjx
 * @since 2023-01-31
 */
@RestController
@RequestMapping("/sys/class_student")
public class AasClassStudentController {
  @Resource IAasClassStudentService iAasClassStudentService;

  @GetMapping("/students")
  public R getStudents(ClassStudentPageDTO dto) {
    return R.ok(iAasClassStudentService.getClassStudentVOById(dto));
  }
}
